// 基于现有的State数据派生新的数据状态
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  userId: state => state.user.userInfor.userId,
  avatar: state => state.user.userInfor.staffPhoto,
  name: state => state.user.userInfor.username
}
export default getters
